<template>
  <view class="index">
    <Counter />
  </view>
</template>

<script>
import './index.scss'
import { onBeforeMount, onMounted } from 'vue';
import { useLoad } from '@tarojs/taro'
import Counter from '../../components/Counter.vue'

export default {
  name: 'Index',
  components: {
    Counter
  },
  setup() {
    useLoad(() => {
      console.log('useLoad')
    })
    onMounted(() => {
      console.log('onMounted')
    })
    onBeforeMount(() => {
      console.log('onBeforeMount')
    })
  }
}
</script>
